package com.amethyst.mybatisplus.join.entity;

import com.amethyst.mybatisplus.join.enums.Sex;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Amethyst
 * @date 2021/8/23
 */
@Data
@Accessors(chain = true)
@TableName("user")
public class User {
    @TableId
    private Integer id;
    private String name;
    //    @JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
    private Sex sex;
    private String headImg;
    @TableLogic
    private Boolean del;
}
